<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>河南保税公共库出区包裹商品溯源</title>
</head>
<style type="text/css">
    table {
        text-align: center;
        vertical-align: middle;
        border-collapse: collapse;
        position: relative;
        width: 100%;
    }

    table thead {
        height: 35px;
        background-color: #E6F9F5;
    }

    table td {
        border: 0;
        padding: 15px;
        position: relative;
    }

    table td::after {
        content: "";
        display: block;
        position: absolute;
        left: 0%;
        top: 0%;
        width: 200%;
        height: 200%;
        border: 1px solid #8be7e4;
        border-top: none;
        border-right: none;
        transform-origin: 0 0;
        transform: scale(0.5);
    }

    table::after {
        content: "";
        display: block;
        position: absolute;
        left: 0%;
        top: 0%;
        width: 200%;
        height: 200%;
        border: 1px solid #8be7e4;
        border-left: none;
        border-bottom: none;
        transform-origin: 0 0;
        transform: scale(0.5);
    }
</style>
<body>

<table>
    <thead>
        <tr>
            <th colspan="4">河南保税公共仓库出区包裹商品溯源信息</th>
        </tr>
    </thead>
    <tbody><tr th:if="${error}!=null"> <td th:text="${error.getErrorDetail()}" colspan="4"></td></tr></tbody>
    <tbody th:each="item,itemStat:${traceList}">
        <tr>
            <td th:text="${item.getTraceInfo().getArticleName()}" colspan="4"></td>
        </tr>
        <tr>
            <td th:text="海关备案号"></td><td th:text="${item.getTraceInfo().getArticleIdentifier()}"></td>
            <td th:text="登记到期日"></td><td th:text="${#dates.format(item.getTraceInfo().getExpireDate(), 'yyyy-MM-dd')}"></td>
        </tr>
        <tr>
            <td th:text="保税仓入库单号"></td><td th:text="${item.getTraceInfo().getPoNo()}"></td>
            <td th:text="当前包裹数量"></td><td th:text="${item.getTraceInfo().getQty()}"></td>
        </tr>
        <tr>
            <td th:text="保税仓验收单号"></td><td th:text="${item.getTraceInfo().getImportBatchNo()}"></td>
            <td th:text="保税仓验收日期"></td><td th:text="${#dates.format(item.getTraceInfo().getCheckEndDate(), 'yyyy-MM-dd')}"></td>
        </tr>

        <tr th:if="${item.getPreBillHead()}!=null">
            <td th:text="入区申报日期"></td><td th:text="${#dates.format(item.getPreBillHead().getDeclDate(), 'yyyy-MM-dd')}"></td>
            <td th:text="入区审批日期"></td><td th:text="${#dates.format(item.getPreBillHead().getApprDate1(), 'yyyy-MM-dd')}"></td>
        </tr>
        <tr th:if="${item.getPreBillHead()}!=null">
            <td th:text="进口口岸"></td><td th:text="${item.getPreBillHead().getInEPort()}"></td>
            <td th:text="航次号"></td><td th:text="${item.getPreBillHead().getVoyageNo()}"></td>
        </tr>
    </tbody>

</table>
</body>
</html>